using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sec_scan漏洞扫描系统.Sec_Config
{
    /// <summary>
    /// 漏洞编号
    /// </summary>
    public class Sec_LoopNumber
    {
        /// <summary>
        /// 生成漏洞编号
        /// </summary>
        /// <param name="info"></param>
        /// <returns></returns>
        public static string NumberInfo(string info)
        {
            string word = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
            Random ra = new Random();
            string wo = "Sec2022";//前规则
            //字符串长度
            int num;
            for (int i = 0; i < 1; i++)
            {
                num = ra.Next(32, 35);//随机生成32 - 35位数

                for (int j = 0; j < num; j++)
                {
                    //拼接字符
                    wo += word[ra.Next(24)];
                }
                Sec_Api.Sec_LoopNumberApi.LoopNum = wo;
                Console.WriteLine("第{0}个：{1}", i + 1, wo);
                //置空，用来存下个字符串
                //wo = "";
            }
            return info;
        }
    }
}
